package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.BannerMapper;
import com.hcb.micro.dto.Banner;
import com.hcb.micro.service.IBannerService;

@Service("BannerService")
public class BannerServiceImpl implements IBannerService {

	@Autowired
	BannerMapper bannerMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return bannerMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Banner record) {
		return bannerMapper.insert(record);
	}

	@Override
	public int insertSelective(Banner record) {
		return bannerMapper.insertSelective(record);
	}

	@Override
	public Banner selectByPrimaryKey(Integer id) {
		return bannerMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Banner record) {
		return bannerMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Banner record) {
		return bannerMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Banner> selectByPara(Map<String, Object> para) {
		return bannerMapper.selectByPara(para);
	}

}
